package com.example.design.bilibili.responsibility;

public abstract class Approver {

    //下一个处理者
    Approver approver;

    String name;

    public Approver(String name) {
        this.name = name;
    }

    public Approver getApprover() {
        return approver;
    }

    public void setApprover(Approver approver) {
        this.approver = approver;
    }

    //处理请求审批的方法，得到一个请求，处理是子类完成，因此该方法做成抽象
    public abstract void purchaseRequest(PurchaseRequest purchaseRequest);
}
